class Stack {
public:
  Stack();
  bool isempty() const;
  bool isfull() const;
  bool push(const unsigned long &item);
  bool pop(unsigned long &item);

private:
  enum { MAX = 10 };
  unsigned long items[MAX];
  int top;
};
